#include <stdio.h>
int main()
{
    //求10个整数的最大值
    //存10个数字要用到数组
    int arr[10] = {12,33,34,24,6,7,8,9,999,65};
    int max = arr[0];
    //比较
    for (int i = 1; i < 10; i++)
    {
        if (max < arr[i])
        {
            max = arr[i];//交换
        }
    }
    printf("%d", max);
    return 0;
}